package com.zcl.javaClassAndObject.collection.typeUnknown8_2_1;

import java.util.Vector;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/13  11:08
 */
public class WorksAnyway {
    public static void main(String[] args) {
        Vector mice = new Vector();
        for (int i = 0; i < 3; i++) {
            mice.addElement(new Mouse(i));
        }

        for (int i = 0; i < mice.size(); i++) {
            System.out.println("Free Mouse " + mice.elementAt(i));
            MouseTrap.caughtYa(mice.elementAt(i));
        }
    }
}
